using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._NetworkDiagramTools._Configuration
{
    /// <summary>
    /// <para>Create Diagram Layer Definition</para>
    /// <para>Creates a diagram layer definition for the input diagram template using the settings of the network feature layers in the active map.</para>
    /// <para>使用活动地图中网络要素图层的设置为输入逻辑示意图模板创建逻辑示意图图层定义。</para>
    /// </summary>    
    [DisplayName("Create Diagram Layer Definition")]
    public class CreateDiagramLayerDefinition : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateDiagramLayerDefinition()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para>The utility network or trace network layer in the active map.</para>
        /// <para>活动地图中的公共设施网络或追踪网络图层。</para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para>The name of the diagram template to modify.</para>
        /// <para>要修改的逻辑示意图模板的名称。</para>
        /// </param>
        public CreateDiagramLayerDefinition(object _in_utility_network, object _template_name)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
        }
        public override string ToolboxName => "Network Diagram Tools";

        public override string ToolName => "Create Diagram Layer Definition";

        public override string CallName => "nd.CreateDiagramLayerDefinition";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _system_junctions.GetGPValue(), _connectivity_associations.GetGPValue(), _structural_attachments.GetGPValue(), _reduction_edges.GetGPValue(), _point_subLayers, _polygon_subLayers, _out_utility_network, _out_template_name, _junction_object_point_subLayers, _edge_object_polyline_subLayers, _overwrite_all_layers.GetGPValue()];

        /// <summary>
        /// <para>Input Network</para>
        /// <para>The utility network or trace network layer in the active map.</para>
        /// <para>活动地图中的公共设施网络或追踪网络图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para>The name of the diagram template to modify.</para>
        /// <para>要修改的逻辑示意图模板的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>System Junctions</para>
        /// <para><xdoc>
        ///   <para>Specifies whether system junctions and system junction objects will be represented in the diagrams based on the specified template.
        ///   <bulletList>
        ///     <bullet_item>Checked—The system junctions along the network lines and the system junction objects along the network edge objects will be represented in the diagrams by a System Junction layer and a System Junction Objects layer, respectively. This is the default.  </bullet_item><para/>
        ///     <bullet_item>Unchecked—System junctions and system junction objects will not be represented in the diagrams.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>指定是否基于指定的模板在关系图中表示系统交汇点和系统交汇点对象。
        ///   <bulletList>
        ///     <bullet_item>选中 - 沿网络线的系统交汇点和沿网络边对象的系统交汇点对象将在逻辑示意图中分别由系统交汇点图层和系统交汇点对象图层表示。这是默认设置。 </bullet_item><para/>
        ///     <bullet_item>未选中—系统交汇点和系统交汇点对象将不会在逻辑示意图中表示。</bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("System Junctions")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _system_junctions_value _system_junctions { get; set; } = _system_junctions_value._true;

        public enum _system_junctions_value
        {
            /// <summary>
            /// <para>SHOW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SHOW")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>HIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("HIDE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Connectivity Associations</para>
        /// <para><xdoc>
        ///   <para>Specifies whether connectivity associations will be represented in the diagrams based on the specified template.
        ///   <bulletList>
        ///     <bullet_item>Checked—Connectivity associations will be represented in the diagrams by the Connectivity Associations layer. This is the default.  </bullet_item><para/>
        ///     <bullet_item>Unchecked— Connectivity associations will not be represented in the diagrams.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>指定是否在基于指定模板的关系图中表示连通性关联。
        ///   <bulletList>
        ///     <bullet_item>选中 - 连通性关联将在逻辑示意图中由 Connectivity Associations 图层表示。这是默认设置。 </bullet_item><para/>
        ///     <bullet_item>未选中 - 连接关联将不会在逻辑示意图中表示。</bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Connectivity Associations")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _connectivity_associations_value _connectivity_associations { get; set; } = _connectivity_associations_value._true;

        public enum _connectivity_associations_value
        {
            /// <summary>
            /// <para>SHOW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SHOW")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>HIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("HIDE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Structural Attachments</para>
        /// <para><xdoc>
        ///   <para>Specifies whether structural attachment associations will be represented in the diagrams based on the specified template.
        ///   <bulletList>
        ///     <bullet_item>Checked—Structural attachment associations will be represented in the diagrams by the Structural Attachments layer. This is the default.  </bullet_item><para/>
        ///     <bullet_item>Unchecked—Structural attachment associations will not be represented in the diagrams.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>指定是否在基于指定模板的逻辑示意图中表示结构附件关联。
        ///   <bulletList>
        ///     <bullet_item>选中 - 结构附件关联将在逻辑示意图中由结构附件图层表示。这是默认设置。 </bullet_item><para/>
        ///     <bullet_item>未选中 - 结构附件关联将不表示在逻辑示意图中。</bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Structural Attachments")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _structural_attachments_value _structural_attachments { get; set; } = _structural_attachments_value._true;

        public enum _structural_attachments_value
        {
            /// <summary>
            /// <para>SHOW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SHOW")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>HIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("HIDE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Reduction Edges</para>
        /// <para><xdoc>
        ///   <para>Specifies whether reduction edges will be represented in the diagrams based on the specified template.
        ///   <bulletList>
        ///     <bullet_item>Checked—Reduction edges will be represented in the diagrams by the Reduction Edges layer. This is the default.  </bullet_item><para/>
        ///     <bullet_item>Unchecked—Reduction edges will not be represented in the diagrams.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>指定是否基于指定的模板在逻辑示意图中表示缩减边。
        ///   <bulletList>
        ///     <bullet_item>选中 - 缩减边将在逻辑示意图中由缩减边图层表示。这是默认设置。 </bullet_item><para/>
        ///     <bullet_item>未选中 - 缩减边不会在逻辑示意图中表示。</bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Reduction Edges")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _reduction_edges_value _reduction_edges { get; set; } = _reduction_edges_value._true;

        public enum _reduction_edges_value
        {
            /// <summary>
            /// <para>SHOW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SHOW")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>HIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("HIDE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Points for edges reduced as junctions or collapsed polygons</para>
        /// <para><xdoc>
        ///   <para>Specifies whether layers will be added to represent container polygon features, network line features, or network edge objects as point features in the diagrams.</para>
        ///   <para>The Subtype Layer column is used as follows:
        ///   <bulletList>
        ///     <bullet_item>Checked—The layer will be created with subtype group layers.  </bullet_item><para/>
        ///     <bullet_item>Unchecked—The layer will be created as a simple layer. This is the default.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否添加图层以将容器面要素、网络线要素或网络边对象表示为逻辑示意图中的点要素。</para>
        /// <para>子类型图层列的使用方式如下：
        ///   <bulletList>
        ///     <bullet_item>选中 - 将使用子类型图层组创建图层。</bullet_item><para/>
        ///     <bullet_item>未选中 - 图层将创建为简单图层。这是默认设置。 </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Points for edges reduced as junctions or collapsed polygons")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _point_subLayers { get; set; } = null;


        /// <summary>
        /// <para>Polygons for containers</para>
        /// <para><xdoc>
        ///   <para>Specifies whether layers will be added to represent container point features or container junction objects as polygon features in the diagrams.</para>
        ///   <para>The Subtype Layer column is used as follows:
        ///   <bulletList>
        ///     <bullet_item>Checked—The layer will be created with subtype group layers.  </bullet_item><para/>
        ///     <bullet_item>Unchecked—The layer will be created as a simple layer. This is the default.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否添加图层以将容器点要素或容器交汇点对象表示为逻辑示意图中的面要素。</para>
        /// <para>子类型图层列的使用方式如下：
        ///   <bulletList>
        ///     <bullet_item>选中 - 将使用子类型图层组创建图层。</bullet_item><para/>
        ///     <bullet_item>未选中 - 图层将创建为简单图层。这是默认设置。 </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Polygons for containers")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _polygon_subLayers { get; set; } = null;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        /// <summary>
        /// <para>Points for junction objects</para>
        /// <para><xdoc>
        ///   <para>Specifies whether layers will be added to represent junction objects as point features in the diagrams.</para>
        ///   <para>The Subtype Layer column is used as follows:
        ///   <bulletList>
        ///     <bullet_item>Checked—The layer will be created with subtype group layers.  </bullet_item><para/>
        ///     <bullet_item>Unchecked—The layer will be created as a simple layer. This is the default.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否添加图层以将交汇点对象表示为逻辑示意图中的点要素。</para>
        /// <para>子类型图层列的使用方式如下：
        ///   <bulletList>
        ///     <bullet_item>选中 - 将使用子类型图层组创建图层。</bullet_item><para/>
        ///     <bullet_item>未选中 - 图层将创建为简单图层。这是默认设置。 </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Points for junction objects")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _junction_object_point_subLayers { get; set; } = null;


        /// <summary>
        /// <para>Polylines for edge objects</para>
        /// <para><xdoc>
        ///   <para>Specifies whether layers will be added to represent edge objects as polyline features in the diagrams.</para>
        ///   <para>The Subtype Layer column is used as follows:
        ///   <bulletList>
        ///     <bullet_item>Checked—The layer will be created with subtype group layers.  </bullet_item><para/>
        ///     <bullet_item>Unchecked—The layer will be created as a simple layer. This is the default.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否添加图层以将边对象表示为逻辑示意图中的折线要素。</para>
        /// <para>子类型图层列的使用方式如下：
        ///   <bulletList>
        ///     <bullet_item>选中 - 将使用子类型图层组创建图层。</bullet_item><para/>
        ///     <bullet_item>未选中 - 图层将创建为简单图层。这是默认设置。 </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Polylines for edge objects")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _edge_object_polyline_subLayers { get; set; } = null;


        /// <summary>
        /// <para>Overwrite all layers</para>
        /// <para><xdoc>
        ///   <para>Specifies whether all existing layers under the diagram layer will be overwritten or preserved, except those in the input network map and explicitly specified additional sublayers.
        ///   <bulletList>
        ///     <bullet_item>Checked—The diagram layer definition is initialized or entirely reset (overwritten) including layers in the input map and in specified settings in the Additional Sublayers section. This is the default.  </bullet_item><para/>
        ///     <bullet_item>Unchecked— All existing layers under the diagram layer will be preserved except those in the input network map as well as those explicitly specified in the Additional Sublayers section.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// 指定是否覆盖<para>或保留逻辑示意图图层下的所有现有图层，但输入网络地图和显式指定的其他子图层除外。
        ///   <bulletList>
        ///     <bullet_item>选中 - 逻辑示意图图层定义已初始化或完全重置（覆盖），包括输入地图中的图层和附加子图层部分的指定设置中的图层。这是默认设置。 </bullet_item><para/>
        ///     <bullet_item>未选中- 将保留逻辑示意图图层下的所有现有图层，但输入网络地图中的图层以及附加子图层部分中明确指定的图层除外。</bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Overwrite all layers")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _overwrite_all_layers_value _overwrite_all_layers { get; set; } = _overwrite_all_layers_value._true;

        public enum _overwrite_all_layers_value
        {
            /// <summary>
            /// <para>OVERWRITE_ALL</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("OVERWRITE_ALL")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>MERGE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("MERGE")]
            [GPEnumValue("false")]
            _false,

        }

        public CreateDiagramLayerDefinition SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}